package com.example.shop.commodity.entity;

import com.example.shop.base.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @author hcj
 * @date 2021-09-21 19:06:20
 */
public class ShopOrder extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 商品id
     */
    private String cid;
    /**
     * 商品信息
     */
    private String commodity;
    /**
     * 分类名称
     */
    private String name;
    private List<String> pics;
    /**
     * 数量
     */
    private Integer number;
    /**
     * 支付价格
     */
    private BigDecimal payPrice;
    /**
     * 支付时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date payTime;
    /**
     * 支付方式 0 货到付款 1 在线支付
     */
    private String payType;
    /**
     * 支付状态 0 未支付 1 已支付
     */
    private String status;
    /**
     * 用户id
     */
    private String uid;
    /**
     * 订单编号
     */
    private String orderNum;
    /**
     * 用户收货地址aid
     */
    private String aid;

    private String userName;
    private String telNumber;
    private List<Map<String,Object>> info;

    public List<Map<String,Object>> getInfo() {
        return info;
    }

    public void setInfo(List<Map<String,Object>> info) {
        this.info = info;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getTelNumber() {
        return telNumber;
    }

    public void setTelNumber(String telNumber) {
        this.telNumber = telNumber;
    }

    public List<String> getPics() {
        return pics;
    }

    public void setPics(List<String> pics) {
        this.pics = pics;
    }

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    private List<String> cartId;

    private List<Map<String, Object>> commodities;

    public String getAid() {
        return aid;
    }

    public void setAid(String aid) {
        this.aid = aid;
    }

    public List<Map<String, Object>> getCommodities() {
        return commodities;
    }

    public void setCommodities(List<Map<String, Object>> commodities) {
        this.commodities = commodities;
    }

    public List<String> getCartId() {
        return cartId;
    }

    public void setCartId(List<String> cartId) {
        this.cartId = cartId;
    }

    public void setCid(String cid) {
        this.cid = cid;
    }

    public String getCid() {
        return this.cid;
    }

    public void setCommodity(String commodity) {
        this.commodity = commodity;
    }

    public String getCommodity() {
        return this.commodity;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return this.name;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public Integer getNumber() {
        return this.number;
    }

    public void setPayPrice(BigDecimal payPrice) {
        this.payPrice = payPrice;
    }

    public BigDecimal getPayPrice() {
        return this.payPrice;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public Date getPayTime() {
        return this.payTime;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

    public String getPayType() {
        return this.payType;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return this.status;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getUid() {
        return this.uid;
    }
}